<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <channel>
        <title>Global Internet Business Solutions ~ GIBS</title> 
        <link>https://gibs.com</link> 
        <description>RSS feeds for Global Internet Business Solutions ~ GIBS</description> 
        <ttl>60</ttl> <item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/331/nopCommerce_SQL_Query_for_Top_10_Gross_Sales_Days#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=331</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=331&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>nopCommerce SQL Query for Top 10 Gross Sales Days</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/331/nopCommerce_SQL_Query_for_Top_10_Gross_Sales_Days</link> 
    <description>Declare @current_utc_offset int

IF &amp;nbsp;ServerProperty(&amp;#39;EngineEdition&amp;#39;) &amp;gt;= 5

Begin

set @current_utc_offset = (select &amp;nbsp;convert(int, left(current_utc_offset,3)) AS current_utc_offset from sys.time_zone_info Where Name = &amp;#39;US Eastern Standard Time&amp;#39;)

End

PRINT @current_utc_offset
SELECT TOP 10 SUM([OrderTotal]) as totalSales, Count([Id]) AS Orders, &amp;nbsp;dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

FROM [dbo].[Order]

GROUP BY dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

ORDER BY SUM([OrderTotal]) desc
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Tue, 04 Feb 2025 15:26:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:331</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/332/nopCommerce_SQL_Query_for_Top_10_Sales_Days#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=332</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=332&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>nopCommerce SQL Query for Top 10 Sales Days</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/332/nopCommerce_SQL_Query_for_Top_10_Sales_Days</link> 
    <description>Declare @current_utc_offset int

IF &amp;nbsp;ServerProperty(&amp;#39;EngineEdition&amp;#39;) &amp;gt;= 5

Begin

set @current_utc_offset = (select &amp;nbsp;convert(int, left(current_utc_offset,3)) AS current_utc_offset from sys.time_zone_info Where Name = &amp;#39;US Eastern Standard Time&amp;#39;)

End

PRINT @current_utc_offset
SELECT TOP 10 SUM([OrderTotal]) as totalSales, Count([Id]) AS Orders, &amp;nbsp;dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

FROM [dbo].[Order]

GROUP BY dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

ORDER BY SUM([OrderTotal]) desc
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Tue, 04 Feb 2025 15:26:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:332</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/328/nopCommerce_-_Deleting_Guest_Accounts#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=328</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=328&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>nopCommerce - Deleting Guest Accounts</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/328/nopCommerce_-_Deleting_Guest_Accounts</link> 
    <description>Deleting guest account from Customer table:

SQL Query

DELETE Customer
FROM Customer
LEFT OUTER JOIN [Order] ON Customer.Id = [Order].CustomerId
WHERE ([Order].Id IS NULL) AND (Customer.Email IS NULL)

delete guest account - nopCommerce
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Sun, 12 Jan 2025 10:01:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:328</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/6/How_To_Clear_All_Containers_And_Themes_From_Pages_And_Modules_In_DNN#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=6</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=6&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>How To Clear All Containers And Themes From Pages And Modules In DNN</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/6/How_To_Clear_All_Containers_And_Themes_From_Pages_And_Modules_In_DNN</link> 
    <description>Clear all page level skins in a Portal

update {databaseOwner}{objectQualifier}Tabs
set skinsrc=null
where SkinSrc is not null
and PortalID=0

&amp;nbsp;

Clear all page level containers in a Portal

update {databaseOwner}{objectQualifier}tabs
set containersrc=null
where containersrc is not null
and PortalID=0

&amp;nbsp;

Clear all module level containers in a Portal

update {databaseOwner}{objectQualifier}TabModules
set ContainerSrc = null
where TabModuleID in (select TabModuleId
&amp;nbsp;&amp;nbsp;&amp;nbsp; from {databaseOwner}{objectQualifier}TabModules tm
&amp;nbsp;&amp;nbsp;&amp;nbsp; join {databaseOwner}{objectQualifier}Modules m
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on (tm.ModuleID = m.ModuleID)
&amp;nbsp;&amp;nbsp;&amp;nbsp; where ContainerSrc is not null
&amp;nbsp;&amp;nbsp;&amp;nbsp; and m.PortalId=0)
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 20 Feb 2024 20:06:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:6</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/11/SQL_Function_to_Lookup_DNN_Profile_Values#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=11</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=11&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>SQL Function to Lookup DNN Profile Values</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/11/SQL_Function_to_Lookup_DNN_Profile_Values</link> 
    <description>
CREATE FUNCTION GIBS_GetProfileElement
(
@userID as int,
@portalID as int,
@ProfilePropertyName as nvarchar(100)
)
 RETURNS nvarchar(4000) AS
BEGIN

  -- If input is invalid, return null.
  IF  @ProfilePropertyName IS NULL
      OR LEN(@ProfilePropertyName) = 0
      OR @userID IS NULL
      OR @userID &lt; 1
   RETURN NULL

   DECLARE @PropertyValue AS NVARCHAR(400)
   SET @PropertyValue =
      (
       SELECT UserProfile.PropertyValue
 FROM (Users INNER JOIN UserProfile ON Users.UserID = UserProfile.UserID) INNER JOIN ProfilePropertyDefinition ON UserProfile.PropertyDefinitionID = ProfilePropertyDefinition.PropertyDefinitionID
 WHERE (((Users.UserID)=@userID) AND ((ProfilePropertyDefinition.PropertyName)=@ProfilePropertyName) AND ProfilePropertyDefinition.PortalID = @portalID)
      )
   RETURN @PropertyValue

END

</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 01 Feb 2021 20:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:11</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/16/Disable_DNN_Popup_Windows#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=16</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=16&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Disable DNN Popup Windows</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/16/Disable_DNN_Popup_Windows</link> 
    <description>UPDATE PortalSettings
SET SettingValue = &amp;#39;False&amp;#39;
WHERE SettingName = &amp;#39;EnablePopUps&amp;#39;
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 23 Sep 2020 10:19:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:16</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/38/Remove_any_leading_or_following_spaces_as_well_as_any_carriage_returns#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=38</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=38&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Remove any leading or following spaces as well as any carriage returns</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/38/Remove_any_leading_or_following_spaces_as_well_as_any_carriage_returns</link> 
    <description>UPDATE YourTable
SET YourColumn = RTRIM(LTRIM(REPLACE(REPLACE(YourColumn, CHAR(10), &amp;#39;&amp;#39;), CHAR(13), &amp;#39;&amp;#39;)))
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 05 Dec 2018 13:05:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:38</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/58/Update_NBrightBuy_Image_Path_when_upgrading_from_V2#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=58</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=58&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Update NBrightBuy Image Path when upgrading from V2</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/58/Update_NBrightBuy_Image_Path_when_upgrading_from_V2</link> 
    <description>-- Used this great tool (https://github.com/FabioParigi/NBrightBuyMigrate ) but ran into a problem with images
-- Create a SP to verify the old string you&#39;re looking to replace
CREATE PROCEDURE dbo.GIBS_FindStringInTable @stringToFind VARCHAR(100), @schema sysname, @table sysname 
AS
BEGIN TRY
 DECLARE @sqlCommand varchar(max) = &#39;SELECT * FROM [&#39; + @schema + &#39;].[&#39; + @table + &#39;] WHERE &#39; 
 
 SELECT @sqlCommand = @sqlCommand + &#39;cast([&#39; + COLUMN_NAME + &#39;] as nvarchar(max)) LIKE &#39;&#39;&#39; + @stringToFind + &#39;&#39;&#39; OR &#39;
 FROM INFORMATION_SCHEMA.COLUMNS 
 WHERE TABLE_SCHEMA = @schema
 AND TABLE_NAME = @table 
 AND DATA_TYPE IN (&#39;char&#39;,&#39;nchar&#39;,&#39;ntext&#39;,&#39;nvarchar&#39;,&#39;text&#39;,&#39;varchar&#39;,&#39;xml&#39;)
 SET @sqlCommand = left(@sqlCommand,len(@sqlCommand)-3)
 EXEC (@sqlCommand)
 PRINT @sqlCommand
END TRY
BEGIN CATCH 
 PRINT &#39;There was an error. Check to make sure object exists.&#39;
 PRINT error_message()
END CATCH 
GO
&amp;nbsp;
-- Run the SP to search for the string you&#39;re looking to replace
GIBS_FindStringInTable &#39;%productimages%&#39;, &#39;dbo&#39;, &#39;NBrightBuy&#39;
GO
&amp;nbsp;
-- Update the XMLData column with your new string
UPDATE NBrightBuy SET
XMLData = CAST(REPLACE(CAST(XMLData AS NVARCHAR(MAX)), &#39;productimages&#39;,&#39;NBStore\images&#39;) AS XML)
GO
select * from NBrightBuy</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 20 Dec 2016 11:08:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:58</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/65/Order_By_Domain_Name_from_Email_Address#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=65</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=65&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Order By Domain Name from Email Address</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/65/Order_By_Domain_Name_from_Email_Address</link> 
    <description>SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID, Username, FirstName, LastName, IsSuperUser, AffiliateId, Email, DisplayName, UpdatePassword, LastIPAddress, IsDeleted, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastModifiedOnDate, PasswordResetToken, PasswordResetExpiration, LowerEmail
FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Users
ORDER BY RIGHT(Email, LEN(Email) - CHARINDEX(&#39;@&#39;, Email))</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sat, 23 Apr 2016 09:09:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:65</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/69/DNN_Region_Lookup#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=69</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=69&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN Region Lookup</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/69/DNN_Region_Lookup</link> 
    <description>&amp;nbsp;
 (SELECT [Value] FROM Lists where EntryID = (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Region&#39; AND PortalID = @PortalID)))
 AS [State] </description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 16 Feb 2016 11:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:69</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/72/SQL_DNN_Get_User_Profile_with_Region_Lookup#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=72</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=72&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>SQL DNN Get User Profile with Region Lookup</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/72/SQL_DNN_Get_User_Profile_with_Region_Lookup</link> 
    <description> Declare @PortalId int;
Set @PortalId = 0;
SELECT 
 
 
 &#39;OwnerFirstName&#39; = U.FirstName,
 &#39;OwnerLastName&#39; = U.LastName,
 &#39;OwnerEmail&#39; = U.Email 
 , (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Telephone&#39; AND PortalID = @PortalID)) AS OwnerTelephone
 , (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Cell&#39; AND PortalID = @PortalID)) AS OwnerCell 
 , (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Street&#39; AND PortalID = @PortalID)) AS OwnerAddress 
 , (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;City&#39; AND PortalID = @PortalID)) AS OwnerCity 
 , 
 CASE 
 WHEN ISNUMERIC((SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Region&#39; AND PortalID = @PortalID))) = 1 
 THEN (SELECT [Value] FROM Lists where EntryID = (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Region&#39; AND PortalID = @PortalID)) )
 ELSE (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Region&#39; AND PortalID = @PortalID)) 
 END AS OwnerState 
 
 
 -- (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;Region&#39; AND PortalID = @PortalID)) AS OwnerState
 
 
 , (SELECT PropertyValue FROM UserProfile WHERE UserId = U.UserId AND PropertyDefinitionID = (SELECT PropertyDefinitionID FROM ProfilePropertyDefinition WHERE PropertyName = &#39;PostalCode&#39; AND PortalID = @PortalID)) AS OwnerZip 
 
 
 
FROM Users U 
 
 
WHERE 
U.UserID = @UserID</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 04 Jan 2016 11:13:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:72</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/78/Pivot_Query_for_Ventrian_Property_Agent#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=78</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=78&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Pivot Query for Ventrian Property Agent</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/78/Pivot_Query_for_Ventrian_Property_Agent</link> 
    <description>I had a need for getting a property details for a SSR report and came up with the following store procedure&amp;nbsp; . . . I thought it might be useful to someone.
/****** Object: StoredProcedure [dbo].[GIBS_Rentals_Get_PropertyDetails] Script Date: 12/15/2014 06:52:03 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
&amp;nbsp;
CREATE PROCEDURE [dbo].[GIBS_Rentals_Get_PropertyDetails] 
( 
 @PropertyID int
)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @cols AS VARCHAR(MAX),
 @query AS VARCHAR(MAX),
 @PropertyIDVarchar AS VARCHAR(10)
Set @PropertyIDVarchar = Convert(VARCHAR(10),@PropertyID)
select @cols = STUFF((SELECT distinct &#39;,&#39; + QUOTENAME(name) 
FROM Ventrian_PropertyAgent_CustomField 
FOR XML PATH(&#39;&#39;), TYPE
).value(&#39;.&#39;, &#39;VARCHAR(MAX)&#39;) 
,1,1,&#39;&#39;)
--print @cols
set @query 
= &#39;SELECT PropertyID,&#39; + @cols + &#39; from 
(
SELECT
PropertyID ,
&amp;nbsp;
cast(Ventrian_PropertyAgent_PropertyValue.CustomValue as Varchar(50)) AS CustomValue,
Ventrian_PropertyAgent_CustomField.Name AS [Name]
&amp;nbsp;
FROM Ventrian_PropertyAgent_PropertyValue
INNER JOIN
Ventrian_PropertyAgent_CustomField ON Ventrian_PropertyAgent_PropertyValue.CustomFieldID = Ventrian_PropertyAgent_CustomField.CustomFieldID
&amp;nbsp;
WHERE Ventrian_PropertyAgent_PropertyValue.PropertyID = &#39; + @PropertyIDVarchar + &#39;
) x
pivot
(
min(CustomValue)
 for Name in (&#39; + @cols + &#39;)
) p &#39;
--print @query
execute(@query)
END</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 15 Dec 2014 13:22:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:78</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/88/Replace_Null_or_Empty_Value_with_String#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=88</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=88&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Replace Null or Empty Value with String</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/88/Replace_Null_or_Empty_Value_with_String</link> 
    <description>Select ISNULL(NULLIF(GIBS_FBLineItems.ReportType, &#39;&#39;), &#39;--Undefined--&#39;) as ReportType from GIBS_FBLineItems</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 16 Sep 2014 10:28:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:88</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/95/COALESCE_Transact-SQL#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=95</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=95&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>COALESCE (Transact-SQL)</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/95/COALESCE_Transact-SQL</link> 
    <description>COALESCE (Transact-SQL)</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 12 May 2014 18:11:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:95</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/115/Alter_Table_-_Setting_a_Column_Default_Value#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=115</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=115&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Alter Table - Setting a Column Default Value</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/115/Alter_Table_-_Setting_a_Column_Default_Value</link> 
    <description>ALTER TABLE MyTableName ADD CONSTRAINT DF_MyTableName DEFAULT GETDATE() FOR MyColumnName</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 05 Dec 2012 09:36:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:115</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/132/Updating_DNN_Module_Skin_Container_via_SQL#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=132</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=132&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Updating DNN Module Skin Container via SQL</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/132/Updating_DNN_Module_Skin_Container_via_SQL</link> 
    <description>DNN module skin container settings are stored in the TabModules table. Use the following SQL statement to reset all containers:

update TabModules set ContainerSrc = NULL

To update spcific modules you could execute something like:

update TabModules set ContainerSrc = &#39;[G]Containers/sL001_DarkRed/No Container.ascx&#39; where ContainerSrc = &#39;[L]Containers/DarkRed/No Container.ascx&#39;

Host containers will start with &quot;[G]&quot; and site containers will start with &quot;[L]&quot;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 21 Dec 2011 11:24:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:132</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/139/Formatting_a_Short_Date_in_SQL_using_Convert_Function#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=139</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=139&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Formatting a Short Date in SQL using Convert Function</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/139/Formatting_a_Short_Date_in_SQL_using_Convert_Function</link> 
    <description>To format a short date&amp;nbsp;like MM/DD/YY&amp;nbsp;try the following:
select CONVERT(VARCHAR(8), GETDATE(), 1) as MyShortDate
For a complete guide to&amp;nbsp;SQL Server Date Formats visit Sql Server Helper.</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 12 Aug 2011 15:26:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:139</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/143/Quick_Table_Backup_-_SELECT_INTO#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=143</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=143&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Quick Table Backup - SELECT INTO</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/143/Quick_Table_Backup_-_SELECT_INTO</link> 
    <description>Syntax: 
SELECT field1 [ , field2 ] , ... [ ] INTO newtable FROM source 
field1 
Is a parameter that specifies the list of the fields that are to be retrieved. 
newtable 
Is the name of the table the data is to be sent to. 
source 
Is the name of the table the data is to be retrieved from.
The SELECT INTO statement is used to create a make-table query. It is especially useful for making backup copies of tables and reports, or for archiving records.
Example:
SELECT * INTO Customers_Backup FROM Customers;
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 27 Apr 2011 10:01:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:143</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/146/DNN_User_Login_report_SQL_script_for_DNN_Reports_Module#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=146</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=146&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN User Login report SQL script for DNN Reports Module</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/146/DNN_User_Login_report_SQL_script_for_DNN_Reports_Module</link> 
    <description>Here&amp;#39;s a great sql script to use for the DotNetNuke Reports Module:

Select
--&amp;nbsp;&amp;nbsp; AU.Username,
&amp;nbsp;&amp;nbsp; U.FirstName,
&amp;nbsp;&amp;nbsp; U.LastName,
&amp;nbsp;&amp;nbsp; AM.loweredEmail as Email,
switchoffset(CAST(AM.LastLoginDate as datetimeoffset),&amp;#39;-04:00&amp;#39;) as LastLogin&amp;nbsp;
&amp;nbsp;&amp;nbsp;
&amp;nbsp;from
&amp;nbsp;&amp;nbsp; aspnet_Membership as AM with (nolock)
&amp;nbsp;&amp;nbsp; join aspnet_Users as AU with (nolock) on AM.UserID = AU.UserID
&amp;nbsp;&amp;nbsp; join Users as U&amp;nbsp; with (nolock) on U.UserName = AU.Username
&amp;nbsp;where
&amp;nbsp;&amp;nbsp; AM.ApplicationID = (select ApplicationID from dbo.aspnet_Applications where ApplicationName = &amp;#39;DotNetNuke&amp;#39;) order by LastLoginDate desc
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 10 Apr 2011 17:27:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:146</guid> 
    
</item>

    </channel>
</rss>